import fetch from '@/utils/fetch'
// 获取聊天数据
export const getChatHistory = (id) => {
    return fetch.get('/v1/chatroom', {
        params: {
            inquiryid: id
        }
    })
}

export const sendChat = (data) => {
    return fetch.post('/v1/chatroom', { ...data })
}
